- Title
- Detecting infeasible branches based on code patterns
- Creator
- Ding, Sun; Zhang, Hongyu; Tan, Hee Beng Kuan
- Relation
- 2014 Software Evolution Week - IEEE Conference on Software Maintenance, Reengineering, and Reverse Engineering (CSMR-WCRE) . Proceedings of the 2014 Software Evolution Week - IEEE Conference on Software Maintenance, Reengineering, and Reverse Engineering (Antwerp, Belgium 3-6 February, 2014) p. 74-83
- Publisher Link
- http://dx.doi.org/10.1109/CSMR-WCRE.2014.6747227
- Publisher
- Institute of Electrical and Electronics Engineers (IEEE)
- Resource Type
- conference paper
- Date
- 2014
- Description
- Infeasible branches are program branches that can never be exercised regardless of the inputs of the program. Detecting infeasible branches is important to many software engineering tasks such as test case generation and test coverage measurement. Applying full-scale symbolic evaluation to infeasible branch detection could be very costly, especially for a large software system. In this work, we propose a code pattern based method for detecting infeasible branches. We first introduce two general patterns that can characterize the source code containing infeasible branches. We then develop a tool, called Pattern-based method for Infeasible branch Detection (PIND), to detect infeasible branches based on the discovered code patterns. PIND only performs symbolic evaluation for the branches that exhibit the identified code patterns, therefore significantly reduce the number of symbolic evaluations required. We evaluate PIND from two aspects: accuracy and efficiency. The experimental results show that PIND can effectively and efficiently detect infeasible branches in real-world Java and Android programs. We also explore the application of PIND in measuring test case coverage.
- Subject
- infeasible branch; test case coverage; code patterns; program analysis
- Identifier
- http://hdl.handle.net/1959.13/1356835
- Identifier
- uon:31800
- Identifier
- ISBN:9781479937523
- Language
- eng
- Reviewed
- Hits: 1938
- Visitors: 1900
- Downloads: 2
Thumbnail | File | Description | Size | Format |
---|